import request from '@/utils/request'

// 查询系统级组件(原子组件)列表
export function listSysComponent(query) {
  return request({
    url: '/business/sysComponent/list',
    method: 'get',
    params: query
  })
}

// 查询系统级组件(原子组件)详细
export function getSysComponent(id) {
  return request({
    url: '/business/sysComponent/' + id,
    method: 'get'
  })
}

// 新增系统级组件(原子组件)
export function addSysComponent(data) {
  return request({
    url: '/business/sysComponent',
    method: 'post',
    data: data
  })
}

// 修改系统级组件(原子组件)
export function updateSysComponent(data) {
  return request({
    url: '/business/sysComponent',
    method: 'put',
    data: data
  })
}

// 删除系统级组件(原子组件)
export function delSysComponent(id) {
  return request({
    url: '/business/sysComponent/' + id,
    method: 'delete'
  })
}
